# -*- encoding: utf-8 -*-
# 11:43 2021/12/06
# Kay

from flask_sqlalchemy import SQLAlchemy

from libs.models import get_random_string

db = SQLAlchemy()


class User(db.Model):
    __tablename__ = 'user_users'
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(20))
    username = db.Column(db.String(128), default='I_free_%s' % get_random_string(6))
    password = db.Column(db.String(128), default='hello world')
    email = db.Column(db.String(12), default='0')
